using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ScenesUI : MonoBehaviour
{

    public Button NextButton;
    public Button PreButton;


    void Awake()
    {
        NextButton.onClick.AddListener(SceneMgr.GetInstance().NextScene);

        PreButton.onClick.AddListener(SceneMgr.GetInstance().PreScene);
    }

    void OnDestroy()
    {
        NextButton.onClick.RemoveAllListeners();
        PreButton.onClick.RemoveAllListeners();
    }

}
